package com.ruoyi.etail.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 交易明细对象 trade_detail
 * 
 * @author ruoyi
 * @date 2025-09-04
 */
public class TradeDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tradeTime;

    /** 交易金额 */
    @Excel(name = "交易金额")
    private BigDecimal tradeAmount;

    /** 交易类型 */
    @Excel(name = "交易类型")
    private String tradeType;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 交易单号 */
    @Excel(name = "交易单号")
    private String tradeOrderNo;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTradeTime(Date tradeTime) 
    {
        this.tradeTime = tradeTime;
    }

    public Date getTradeTime() 
    {
        return tradeTime;
    }

    public void setTradeAmount(BigDecimal tradeAmount) 
    {
        this.tradeAmount = tradeAmount;
    }

    public BigDecimal getTradeAmount() 
    {
        return tradeAmount;
    }

    public void setTradeType(String tradeType) 
    {
        this.tradeType = tradeType;
    }

    public String getTradeType() 
    {
        return tradeType;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setTradeOrderNo(String tradeOrderNo) 
    {
        this.tradeOrderNo = tradeOrderNo;
    }

    public String getTradeOrderNo() 
    {
        return tradeOrderNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tradeTime", getTradeTime())
            .append("tradeAmount", getTradeAmount())
            .append("tradeType", getTradeType())
            .append("orderNo", getOrderNo())
            .append("tradeOrderNo", getTradeOrderNo())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
